package com.ruoyi.emergencyplan.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.emergencyplan.mapper.MaterialInventoryRecordMapper;
import com.ruoyi.emergencyplan.domain.MaterialInventoryRecord;
import com.ruoyi.emergencyplan.service.IMaterialInventoryRecordService;

/**
 * 盘点记录Service业务层处理
 * 
 * @author hcc
 * @date 2023-12-17
 */
@Service
public class MaterialInventoryRecordServiceImpl implements IMaterialInventoryRecordService 
{
    @Autowired
    private MaterialInventoryRecordMapper materialInventoryRecordMapper;

    /**
     * 查询盘点记录
     * 
     * @param id 盘点记录主键
     * @return 盘点记录
     */
    @Override
    public MaterialInventoryRecord selectMaterialInventoryRecordById(String id)
    {
        return materialInventoryRecordMapper.selectMaterialInventoryRecordById(id);
    }

    /**
     * 查询盘点记录列表
     * 
     * @param materialInventoryRecord 盘点记录
     * @return 盘点记录
     */
    @Override
    public List<MaterialInventoryRecord> selectMaterialInventoryRecordList(MaterialInventoryRecord materialInventoryRecord)
    {
        return materialInventoryRecordMapper.selectMaterialInventoryRecordList(materialInventoryRecord);
    }

    /**
     * 新增盘点记录
     * 
     * @param materialInventoryRecord 盘点记录
     * @return 结果
     */
    @Override
    public int insertMaterialInventoryRecord(MaterialInventoryRecord materialInventoryRecord)
    {
        return materialInventoryRecordMapper.insertMaterialInventoryRecord(materialInventoryRecord);
    }

    /**
     * 修改盘点记录
     * 
     * @param materialInventoryRecord 盘点记录
     * @return 结果
     */
    @Override
    public int updateMaterialInventoryRecord(MaterialInventoryRecord materialInventoryRecord)
    {
        return materialInventoryRecordMapper.updateMaterialInventoryRecord(materialInventoryRecord);
    }

    /**
     * 批量删除盘点记录
     * 
     * @param ids 需要删除的盘点记录主键
     * @return 结果
     */
    @Override
    public int deleteMaterialInventoryRecordByIds(String[] ids)
    {
        return materialInventoryRecordMapper.deleteMaterialInventoryRecordByIds(ids);
    }

    /**
     * 删除盘点记录信息
     * 
     * @param id 盘点记录主键
     * @return 结果
     */
    @Override
    public int deleteMaterialInventoryRecordById(String id)
    {
        return materialInventoryRecordMapper.deleteMaterialInventoryRecordById(id);
    }
}
